package com.faceye.test.service.proxy;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

@RunWith(JUnit4.class)
public class DynamicProxyTestCase {

    DynamicProxy proxy=null;
    BusinessUnit businessUnit=null;
    @Before
    public void set() throws  Exception{
        proxy=new DynamicProxy();
        businessUnit=(BusinessUnit) proxy.newProxy(new BusinessUnitImpl());
    }
    @After
    public  void clear() throws Exception{
        proxy=null;
        businessUnit=null;
    }
    @Test
    public void testProxy() throws Exception{
        businessUnit.doBusinuess();
    }
}
